package com.yunfei.yunhetong.magerContDtl.bo;
import com.yunfei.yunhetong.magerContDtl.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename MAGER_CONT_DTL
*@author zhengyunfei
*@createDate Thu Sep 26 09:46:27 CST 2019
*/ 
public class MagerContDtlBo implements java.io.Serializable{
	private String crmMagerId;
	private String caCustId;
	private String contractNm;
	private String contractAdd;
	private String contractId;
	private String effeFlg;
	private String createDt;
	private String createUser;
	private String deleteDt;
	private String deleteUser;
	private String field;
	private String order;
	private String prodNm;

	public String getProdNm() {
		return prodNm;
	}

	public void setProdNm(String prodNm) {
		this.prodNm = prodNm;
	}
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCrmMagerId(String crmMagerId){
		this.crmMagerId=crmMagerId;
	}
	public String getCrmMagerId(){
		return crmMagerId;
	}
	public void setCaCustId(String caCustId){
		this.caCustId=caCustId;
	}
	public String getCaCustId(){
		return caCustId;
	}
	public void setContractNm(String contractNm){
		this.contractNm=contractNm;
	}
	public String getContractNm(){
		return contractNm;
	}
	public void setContractAdd(String contractAdd){
		this.contractAdd=contractAdd;
	}
	public String getContractAdd(){
		return contractAdd;
	}
	public void setContractId(String contractId){
		this.contractId=contractId;
	}
	public String getContractId(){
		return contractId;
	}
	public void setEffeFlg(String effeFlg){
		this.effeFlg=effeFlg;
	}
	public String getEffeFlg(){
		return effeFlg;
	}
	public void setCreateDt(String createDt){
		this.createDt=createDt;
	}
	public String getCreateDt(){
		return createDt;
	}
	public void setCreateUser(String createUser){
		this.createUser=createUser;
	}
	public String getCreateUser(){
		return createUser;
	}
	public void setDeleteDt(String deleteDt){
		this.deleteDt=deleteDt;
	}
	public String getDeleteDt(){
		return deleteDt;
	}
	public void setDeleteUser(String deleteUser){
		this.deleteUser=deleteUser;
	}
	public String getDeleteUser(){
		return deleteUser;
	}
	public static MagerContDtlEntity boToEntity(MagerContDtlBo bo){
		MagerContDtlEntity entity=new MagerContDtlEntity();
		entity.setCrmMagerId(bo.getCrmMagerId());
		entity.setCaCustId(bo.getCaCustId());
		entity.setContractNm(bo.getContractNm());
		entity.setContractAdd(bo.getContractAdd());
		entity.setContractId(bo.getContractId());
		entity.setEffeFlg(bo.getEffeFlg());
		entity.setCreateDt(bo.getCreateDt());
		entity.setCreateUser(bo.getCreateUser());
		entity.setDeleteDt(bo.getDeleteDt());
		entity.setDeleteUser(bo.getDeleteUser());
		entity.setProdNm(bo.getProdNm());
		return entity;
	}
	public static MagerContDtlBo entityToBo(MagerContDtlEntity bo){
		MagerContDtlBo entity=new MagerContDtlBo();
		entity.setCrmMagerId(bo.getCrmMagerId());
		entity.setCaCustId(bo.getCaCustId());
		entity.setContractNm(bo.getContractNm());
		entity.setContractAdd(bo.getContractAdd());
		entity.setContractId(bo.getContractId());
		entity.setEffeFlg(bo.getEffeFlg());
		entity.setCreateDt(bo.getCreateDt());
		entity.setCreateUser(bo.getCreateUser());
		entity.setDeleteDt(bo.getDeleteDt());
		entity.setDeleteUser(bo.getDeleteUser());
		entity.setProdNm(bo.getProdNm());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("crmMagerId")){
					result="CRM_MAGER_ID";
				}
				if(field.equals("caCustId")){
					result="CA_CUST_ID";
				}
				if(field.equals("contractNm")){
					result="CONTRACT_NM";
				}
				if(field.equals("contractAdd")){
					result="CONTRACT_ADD";
				}
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("effeFlg")){
					result="EFFE_FLG";
				}
				if(field.equals("createDt")){
					result="CREATE_DT";
				}
				if(field.equals("createUser")){
					result="CREATE_USER";
				}
				if(field.equals("deleteDt")){
					result="DELETE_DT";
				}
				if(field.equals("deleteUser")){
					result="DELETE_USER";
				}
		}
		return result;
	}
}

